package lyx.tank.element
{
	import flash.display.BitmapData;
	import flash.display.Sprite;
	
	import lyx.game.element.GameElement;
	
	public class TankBase extends GameElement
	{
		static public var TANKBASE_VIEW_DATA:BitmapData;
		
		public function TankBase()
		{
			initViewData();
		}
		
		private function initViewData():void
		{
			if(TANKBASE_VIEW_DATA==null)
			{
				var sprite:Sprite = new Sprite();
				sprite.graphics.beginFill(0x437e9f);
				sprite.graphics.drawCircle(20,20,20);
				sprite.graphics.endFill();
				
				TANKBASE_VIEW_DATA = new BitmapData(40,40,true,0);
				TANKBASE_VIEW_DATA.draw(sprite);
			}
			
			view_data = TANKBASE_VIEW_DATA;
		}
	}
}